package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.AskersEntity;
import com.example.entity.AskersVoEntity;
import com.example.entity.UsersEntity;
import com.example.mapper.AskersMapper;
import com.example.service.AskersService;

@Service
public class AskersServiceImpl implements AskersService{
	@Autowired
	private AskersMapper askersMapper;

	/**
	 * 多条件查询
	 * @param userVO
	 * @return
	 */
	@Override
	public List<AskersEntity> GetUsersLayUI(AskersVoEntity askersVoEntity) {
		return askersMapper.GetUsersLayUI(askersVoEntity);
	}

	/**
	 * 分页查询
	 * @param userVO
	 * @return
	 */
	@Override
	public int getCount(AskersVoEntity askersVoEntity) {
		return askersMapper.getCount(askersVoEntity);
	}

	 /**
     * 查询全部
     * @return
     */
	@Override
	public List<AskersEntity> selectListAll() {
		return askersMapper.selectListAll();
	}

	@Override
	public List<AskersEntity> getConsultant() {
		// TODO Auto-generated method stub
		return askersMapper.getConsultant();
	}

	@Override
	public int upMoAskers(AskersEntity weight) {
		// TODO Auto-generated method stub
		return askersMapper.upMoAskers(weight);
	}

	@Override
	public List<AskersEntity> getTBConsultant() {
		// TODO Auto-generated method stub
		return askersMapper.getTBConsultant();
	}

	@Override
	public int addTBConsultant(UsersEntity ue) {
		// TODO Auto-generated method stub
		return askersMapper.addTBConsultant(ue);
	}

	@Override
	public int delTBConsultant(Integer id) {
		// TODO Auto-generated method stub
		return askersMapper.delTBConsultant(id);
	}

}
